/*
 * @Author: 无聊 7989314+Hwz1997@user.noreply.gitee.com
 * @Date: 2025-06-18 11:25:30
 * @LastEditors: 无聊 7989314+Hwz1997@user.noreply.gitee.com
 * @LastEditTime: 2025-10-22 14:16:40
 * @FilePath: \project_keep\keep_motion_manger\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/enter',
      name: 'enter',
      redirect: '/login',
      component: () => import('@/views/enter/index.vue'),
      children: [
        {
          path: '/login',
          name: 'login',
          component: () => import('@/views/login/index.vue'),
        },
        {
          path: '/register',
          name: 'register',
          component: () => import('@/views/register/index.vue'),
        },
      ]
    },
    {
      path: '/',
      name: 'layout',
      component: () => import('@/layouts/AdminLayout/index.vue'),
      redirect: '/home',
      children: [
        {
          path: '/home',
          name: 'home',
          component: () => import('@/views/home/index.vue'),
        },
        // 数据报表 report
        // 用户画像	/user-profiles
        {
          path: '/report/user-profiles',
          name: 'user-profiles',
          component: () => import('@/views/report/userProfiles/index.vue'),
        },
        // 运动日历	/sport-calendar
        {
          path: '/report/sport-calendar',
          name: 'sport-calendar',
          component: () => import('@/views/report/sportCalendar/index.vue'),
        },
        // 排行榜	/rankings
        {
          path: '/report/rankings',
          name: 'rankings',
          component: () => import('@/views/report/rankings/index.vue'),
        },
        // 饮食健康	/diet-records
        {
          path: '/report/diet-records',
          name: 'diet-records',
          component: () => import('@/views/report/dietRecords/index.vue'),
        },
	
        // 商品管理 product
        // 分类管理	/categories
        {
          path: '/product/categories',
          name: 'categories',
          component: () => import('@/views/product/categories/index.vue'),
        },
		    // 商品管理	/products
        {
          path: '/product/products',
          name: 'products',
          component: () => import('@/views/product/products/index.vue'),
        },
		    // 商品活动管理	/promotions
        {
          path: '/product/promotions',
          name: 'promotions',
          component: () => import('@/views/product/promotions/index.vue'),
        },
		    // 订单管理	/orders
        {
          path: '/product/orders',
          name: 'orders',
          component: () => import('@/views/product/orders/index.vue'),
        },
		    // 物流管理	/logistics
        {
          path: '/product/logistics',
          name: 'logistics',
          component: () => import('@/views/product/logistics/index.vue'),
        },
	
        // 社区管理 community
        // 动态管理	/posts
        {
          path: '/community/posts',
          name: 'posts',
          component: () => import('@/views/community/posts/index.vue'),
        },
	      // 收藏管理	/collections
        {
          path: '/community/collections',
          name: 'collections',
          component: () => import('@/views/community/collections/index.vue'),
        },
        // 点赞管理	/likes
        {
          path: '/community/likes',
          name: 'likes',
          component: () => import('@/views/community/likes/index.vue'),
        },

        // 课程管理 courses	
        // 课程管理	/courses
        {
          path: '/course/courses',
          name: 'courses',
          component: () => import('@/views/course/courses/index.vue'),
        },
        // 进度管理	/progress
        {
          path: '/course/progress',
          name: 'progress',
          component: () => import('@/views/course/progress/index.vue'),
        },

        // 运动管理 sport
        // 类型管理	/sport-types
        {
          path: '/sport/sport-types',
          name: 'sport-types',
          component: () => import('@/views/sport/sportTypes/index.vue'),
        },  
        // 运动记录管理	/sport-records
        {
          path: '/sport/sport-records',
          name: 'sport-records',
          component: () => import('@/views/sport/sportRecords/index.vue'),
        },
        // 运动计划管理	/training-plans
        {
          path: '/sport/training-plans',
          name: 'training-plans',
          component: () => import('@/views/sport/trainingPlans/index.vue'),
        },
        // 运动建议管理	/sport-advices
        {
          path: '/sport/sport-advices',
          name: 'sport-advices',
          component: () => import('@/views/sport/sportAdvices/index.vue'),
        },
        // 活动管理	/sport-activities
        {
          path: '/sport/sport-activities',
          name: 'sport-activities',
          component: () => import('@/views/sport/sportActivities/index.vue'),
        },

        // 用户管理 user
        // 信息管理	/users
        {
          path: '/user/users',
          name: 'users',
          component: () => import('@/views/user/users/index.vue'),
        },
        // 会员管理	/member
        {
          path: '/user/member',
          name: 'member',
          component: () => import('@/views/user/member/index.vue'),
        },
	      // 关系管理	/relations
        {
          path: '/user/relations',
          name: 'relations',
          component: () => import('@/views/user/relations/index.vue'),
        },
        // 财务管理	/finance
        {
          path: '/user/finance',
          name: 'finance',
          component: () => import('@/views/user/finance/index.vue'),
        },
        // 健康评估管理	/health-assess
        {
          path: '/user/health-assess',
          name: 'health-assess',
          component: () => import('@/views/user/healthAssess/index.vue'),
        },
        
        // 权限管理 permission
        // 菜单管理 menu
        {
          path: '/permission/menu',
          name: 'menu',
          component: () => import('@/views/permission/menu/index.vue'),
        },
        // 权限管理	/permission
        {
          path: '/permission/permissions',
          name: 'permissions',
          component: () => import('@/views/permission/permissions/index.vue'),
        },
	      // 角色管理	/roles
        {
          path: '/permission/roles',    
          name: 'roles',
          component: () => import('@/views/permission/roles/index.vue'),
        },
        // 人员管理	/admins
        {
          path: '/permission/admins',
          name: 'admins',
          component: () => import('@/views/permission/admins/index.vue'),
        },
        // 操作日志	/logs
        {
          path: '/permission/logs',
          name: 'logs',
          component: () => import('@/views/permission/logs/index.vue'),
        },

        // 系统管理 sys
        // 字典类型 dict-type
        {
          path: '/sys/dict-type',
          name: 'dict-type',
          component: () => import('@/views/sys/dictType/index.vue'),
        },
        // 字典数据 dict-data
        {
          path: '/sys/dict-data',
          name: 'dict-data',
          component: () => import('@/views/sys/dictData/index.vue'),
        },
        // 系统配置管理	/sys-configs
        {
          path: '/sys/configs',
          name: 'configs',
          component: () => import('@/views/sys/fileManager/index.vue'),
        },
        // 文件管理	file-manager
        {
          path: '/file-manager',
          name: 'file-manager',
          component: () => import('@/views/sys/fileManager/index.vue'),
        },

      ]
    },
  ],
})

export default router
